package com.jk.smartelderlycare.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jk.smartelderlycare.dto.SysField;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface SysFieldMapper extends BaseMapper<SysField> {
    /**
     * @description: 字段后端分页查询
     * @param: [page, sysField]
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.jk.smartelderlycare.dto.SysField>
     * @author hhk
     * @date: 2024/11/18 14:23
     */
    IPage<SysField> findSysFieldPaginationList(Page<SysField> page,@Param(value = "sysField") SysField sysField);
    /**
     * @description: 修改状态
     * @param: [sysField]
     * @return: void
     * @author hhk
     * @date: 2024/11/18 14:28
     */
    @Update("update sys_field set status = #{status} where field_id =#{fieldId}")
    void updateStatus(SysField sysField);
}